package kr.saeildamil.androidstudy_second21;

import kr.saeildamil.androidstudy_second.R;
import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuInflater;
import android.widget.TextView;
import android.widget.Toast;

public class ActionProviderTest extends Activity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		TextView text=new TextView(this);
		text.setText("액션 프로바이더를 테스트합니다.");
		setContentView(text);
	}
	
	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// TODO Auto-generated method stub
		super.onCreateOptionsMenu(menu);
		MenuInflater inflater=getMenuInflater();
		inflater.inflate(R.menu.actionprovidermenu, menu);
		return true;
	}
	public boolean onOptionsItemSelected(android.view.MenuItem item) {
		Toast.makeText(this, "Counter Menu Item selected - onOptionItemSelected", 0).show();
		return true;
	};
	
}
